import request from '@/apis/request'
// appid: 'wx873059111ae5f1a8',
// secret: '96e7f842b1fdc9ac8059ab931a6e0d69'
// 登录
// export const loginApi = (data = {}) => {
//     return request('/qagapp/login', 'POST', data, true, true);
// }
// 登录
export const wxAppletLoginApi = (data = {}) => {
    return request('/bygex/jdzh/wxAppletLogin', 'POST', data, true, true);
}
// 微信拿特定token去获取手机号
// export const wxCgiBinTokenApi = (data = {}) => {
//     return request('/cgi-bin/token', 'GET', data, true, true);
// }
// 微信获取手机号
// export const wxGetuserphonenumberApi = (data = {}, url = '') => {
//     return request('/wxa/business/getuserphonenumber?access_token=' + url, 'POST', data, true, true);
// }

// 微信获取手机号
export const getWxPhoneApi = (data = {}) => {
    return request('/bygex/jdzh/getWxPhone', 'POST', data, true, true);
}

export const getCityApi = (data = {}) => {
    return request('/api/api/common/getCity', 'POST', data, false, true);
}

export const getPlaceRetrievalApi = (data = {}) => {
    return request('/bygex/baiduapi/getPlaceRetrieval', 'POST', data, false, true);
}
// 上传图片
export const fileUploadBase64ExApi = (data = {}) => {
    return request('/business/api/file/fileUploadBase64Ex', 'POST', data, true, true);
}
// 保存订单
export const appSaveOrderApi = (data = {}) => {
    return request('/bygex/jdzh/appSaveOrder', 'POST', data, true, true);
}
// 路线偏好
export const countkilometreApi = (data = {}) => {
    return request('/bygex/jdzh/countkilometre', 'POST', data, false, true);
}
// 金额
export const countmoneyApi = (data = {}) => {
    return request('/bygex/jdzh/countmoney', 'POST', data, false, true);
}
// 获取订单列表
export const getAppOrderListApi = (data = {}) => {
    return request('/bygex/jdzh/getAppOrderList', 'POST', data, false, true);
}
// 优惠列表
export const preferentialListApi = (data = {}) => {
    return request('/bygex/jdzh/preferentialList', 'POST', data, false, true);
}


export const robotSafeStudyListApi = (data = {}) => {
    return request('/api/api/common/getCity', 'POST', data, false, true);
}
export const smsSendVcApi = (data = {}) => {
    return request('/api/api/common/getCity', 'POST', data, false, true);
}
export const userRegisterApi = (data = {}) => {
    return request('/api/api/common/getCity', 'POST', data, false, true);
}
// 根据经纬度获取省市区
export const getAreaApi = (data = {}) => {
    return request('/bygex/jdzh/getArea', 'POST', data, true, true);
}
// 删除订单
export const hideOrderApi = (data = {}) => {
    return request('/bygex/jdzh/hideOrder', 'POST', data, false, true);
}
// 获取优惠券
export const getCouponCodeListApi = (data = {}) => {
    return request('/bygex/jdzh/getCouponCodeList', 'POST', data, false, true);
}
// 检查是否开通城市服务
export const checkCityOpenServiceApi = (data = {}) => {
    return request('/bygex/jdzh/checkCityOpenService', 'POST', data, true, true);
}
// 生成邀请码
export const createInvitationCodeApi = (data = {}) => {
    return request('/bygex/jdzh/createInvitationCode', 'POST', data, true, true);
}

// 积分商城
// 商品类型列表
export const goodsTypeListApi = (data = {}) => {
    return request('/bygex/jdzhShop/goodsTypeList', 'POST', data, false, true);
}
// 商品列表
export const goodsMainListApi = (data = {}) => {
    return request('/bygex/jdzhShop/goodsMainList', 'POST', data, false, true);
}
// 收货地址列表
export const addressListApi = (data = {}) => {
    return request('/bygex/jdzhShop/addressList', 'POST', data, true, true);
}
// 保存收货地址
export const saveAddressApi = (data = {}) => {
    return request('/bygex/jdzhShop/saveAddress', 'POST', data, true, true);
}
// 下单接口
export const placeOrderApi = (data = {}) => {
    return request('/bygex/jdzhShop/placeOrder', 'POST', data, true, true);
}
// 订单列表
export const orderListApi = (data = {}) => {
    return request('/bygex/jdzhShop/orderList', 'POST', data, false, true);
}
// 个人信息
export const wxUserInfoApi = (data = {}) => {
    return request('/bygex/jdzhShop/wxUserInfo', 'POST', data, false, true);
}
// 删除地址
export const delAddressApi = (data = {}) => {
    return request('/bygex/jdzhShop/delAddress', 'POST', data, false, true);
}
// 商品详情
export const getGoodsSpecApi = (data = {}) => {
    return request('/bygex/jdzhShop/getGoodsSpec', 'POST', data, false, true);
}
// 签到
export const signInApi = (data = {}) => {
    return request('/bygex/jdzhShop/signIn', 'POST', data, true, true);
}
// 积分变动列表
export const pointsRecordListApi = (data = {}) => {
    return request('/bygex/jdzhShop/pointsRecordList', 'POST', data, false, true);
}
// 支付信息
export const getWechatMiniParamApi = (data = {}) => {
    return request('/bygex/jdzhShop/getWechatMiniParam', 'POST', data, true, true);
}
// 添加许愿商品  参数：goodsName，goodsImg
export const addShopWishApi = (data = {}) => {
    return request('/bygex/jdzhShop/addShopWish', 'POST', data, true, true);
}
// 获取许愿商品列表 参数：无
export const getWishGoodsListApi = (data = {}) => {
    return request('/bygex/jdzhShop/getWishGoodsList', 'POST', data, false, true);
}
// 删除许愿商品 ，参数：wishId 
export const delShopWishApi = (data = {}) => {
    return request('/bygex/jdzhShop/delShopWish', 'POST', data, false, true);
}
